<?php
/**
 * Core_Controller_Randompassword
 * random password generator
 * 
 * @author Adrian Stolarski
 */
class Core_Controller_Randompassword implements Core_Controller_Mainable {
    
    /**
     *
     * @var type $random_password_model
     * random password model handler
     */
    public $random_password_model;
    
    /**
     * constructor()
     */
    public function __construct() {
        $this->random_password_model = new Core_Model_Randompassword;
    }
    
    /**
     * main()
     * return random password
     * 
     * @param array $variables
     * @return type $password
     */
    public function main(array $variables = null) {
        $password = $this->random_password_model->main($variables);
        return $password;
    }

}
